import React, { Component } from 'react';
import {Button,Space} from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import 'antd/dist/antd.css';
import { Row, Col } from 'antd';
import './style.css';
export default class AddWarehouse extends Component {
    constructor(props:any) {
        super(props);
    }
    props={
        chanceAction:(action:any,data:any) => {},
    }
    state = {
        size: 'Default',
      };

      openAddIndex = () => {
        this.props.chanceAction('new','');
      }
    render() {
        const { size } = this.state;
        return (
            <>
            <br/>
                <Row style={{padding:'0 35px',width:"100%"}}>
                    <Col span={20}>
                        <h3 style={{fontWeight:600}}>仓位</h3>
                    </Col>
                    <Col span={4}>
                    <Space style={{float:'right'}}>
                        <Button type="primary" icon={<PlusOutlined />}  onClick={this.openAddIndex}> 新建</Button>
                    </Space>
                    </Col>
                </Row>
                <hr className="antd-hrStyle"/>
            </>
            
        )
    }
}
